package grape.crm.rest.customertag.mapper;

import grape.crm.service.customertag.po.CustomerTag;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.customertag.form.CustomerTagCreateForm;
import grape.crm.rest.customertag.form.CustomerTagUpdateForm;
import grape.crm.rest.customertag.form.CustomerTagListPageForm;
import grape.crm.rest.customertag.vo.CustomerTagVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 客户标签表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-16
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CustomerTagWebMapper extends WebMapper<CustomerTagVo, CustomerTag> {

    CustomerTag formToPo(CustomerTagCreateForm f);
    CustomerTag formToPo(CustomerTagUpdateForm f);
    CustomerTag formToPo(CustomerTagListPageForm f);
}
